package com.malty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

@Builder
@RequiredArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("tb_employee")
@Data
public class Employee extends Model<Employee> {
    @TableId(type = IdType.AUTO) // 默认为uuid, 需要手动配置
    private Integer id;
    @TableField("last_name")
    private String lastName;
    @TableField("email")
    private String email;
    @TableField("gender")
    private String gender;
    @TableField("age")
    private Integer age;
}
